<<<<<<< HEAD
/* * @Author: Zhengxuan Ye * @Date: 2025-05-06 21:28:23 * @Last Modified by: Zhengxuan Ye * @Last
Modified time: 2025-05-06 21:41:18 */
=======
/*
 * @Author: Zhengxuan Ye
 * @Date: 2025-05-06 21:28:23
 * @Last Modified by:   Zhengxuan Ye
 * @Last Modified time: 2025-05-06 21:28:23
 */
>>>>>>> ba93636 (前端建设完成)

<template>
  <div class="featured-heritage-detail">
    <div class="container">
      <!-- 面包屑导航 -->
      <div class="breadcrumbs">
        <router-link to="/">首页</router-link> &gt;
        <router-link to="/heritage-list">遗产名录</router-link> &gt;
        <span>黄梅戏</span>
      </div>

      <!-- 主要内容区 -->
      <div class="heritage-content">
        <!-- 遗产标题信息 -->
        <div class="heritage-header">
          <h1>黄梅戏</h1>
          <div class="heritage-meta">
            <div class="heritage-meta-item">
              <span class="meta-label">所在地区:</span>
              <span class="meta-value">安徽</span>
            </div>
            <div class="heritage-meta-item">
              <span class="meta-label">类别:</span>
              <span class="meta-value">传统戏剧</span>
            </div>
            <div class="heritage-meta-item">
              <span class="meta-label">级别:</span>
              <span class="meta-value level-badge level-national">国家级</span>
            </div>
            <div class="heritage-meta-item">
              <span class="meta-label">认定时间:</span>
              <span class="meta-value">2006年</span>
            </div>
          </div>
        </div>

        <!-- 遗产详情主体 -->
        <div class="heritage-body">
          <div class="heritage-main">
            <!-- 图片展示区域 -->
            <div class="heritage-images">
              <div class="main-image">
                <img :src="currentImage" alt="黄梅戏" class="main-img" />
                <div class="image-source">{{ currentSource }}</div>
                <div class="image-caption">{{ currentCaption }}</div>
              </div>
              <div class="thumbnail-list">
                <div
                  class="thumbnail"
                  @click="showImage(pic1, '黄梅戏表演展示', '素材来源于新民周刊')"
                  :class="{ active: currentImage === pic1 }"
                >
                  <img :src="pic1" alt="黄梅戏表演展示" />
                </div>
                <div
                  class="thumbnail"
                  @click="showImage(pic2, '黄梅戏服饰展示', '素材来源于维基百科')"
                  :class="{ active: currentImage === pic2 }"
                >
                  <img :src="pic2" alt="黄梅戏服饰展示" />
                </div>
              </div>
            </div>

            <!-- 详细介绍 -->
            <div class="heritage-sections">
              <div class="heritage-section">
                <h2 class="section-title">简介</h2>
                <div class="section-content">
                  <p>
                    黄梅戏是中国五大戏曲剧种之一，起源于安徽省安庆黄梅一带，距今有200多年历史。以通俗易懂、贴近生活的表演风格深受观众喜爱，被誉为"东方歌剧"。
                  </p>
                  <p>
                    黄梅戏唱腔优美动听，表演质朴细腻，在整体艺术风格上既保留了中国传统戏曲的程式美，又具有鲜明的地方特色和独特魅力。2006年，黄梅戏被列入第一批国家级非物质文化遗产名录。
                  </p>
                </div>
              </div>

              <div class="heritage-section">
                <h2 class="section-title">历史渊源</h2>
                <div class="section-content">
                  <p>
                    黄梅戏源于清朝乾隆年间的民间小调"花鼓调"，最初只是民间伴以小锣鼓节奏的山歌，后来逐渐发展成为地方戏曲。
                  </p>
                  <p>
                    黄梅戏经历了从采茶灯、茶歌戏、黄梅调到黄梅戏的演变过程。清朝道光年间，黄梅戏已在安徽、湖北、江西三省交界地区流行。民国时期，黄梅戏开始向外传播，并创作了《天仙配》等一批经典剧目。
                  </p>
                  <p>
                    新中国成立后，黄梅戏迎来了繁荣发展的新时期。1955年，电影《天仙配》的公映使黄梅戏走向全国。著名表演艺术家严凤英的杰出表演更是使黄梅戏艺术达到了一个新的高度。从此，黄梅戏跻身中国五大戏曲剧种之列。
                  </p>
                </div>
              </div>

              <div class="heritage-section">
                <h2 class="section-title">艺术特点</h2>
                <div class="section-content">
                  <p>黄梅戏具有鲜明的艺术特色：</p>
                  <ol>
                    <li>
                      <strong>唱腔特点</strong
                      >：以民间小调为基础，音乐优美流畅，明快抒情，吐字清晰，韵味浓郁
                    </li>
                    <li><strong>表演风格</strong>：质朴自然，细腻传神，注重表现人物的内心情感</li>
                    <li>
                      <strong>音乐伴奏</strong
                      >：以二胡为主奏乐器，配以三弦、月琴、笛子、唢呐等民族乐器
                    </li>
                    <li>
                      <strong>剧目题材</strong
                      >：多取材于民间故事和历史传说，以表现普通人的爱情、亲情为主
                    </li>
                    <li>
                      <strong>服饰造型</strong>：朴素典雅，接近民间生活，角色行当分为生、旦、净、丑
                    </li>
                  </ol>
                  <p>
                    黄梅戏被称为"中国最具抒情性的戏曲"，其唱腔委婉动听，表演真挚感人，深受观众喜爱。它既有传统戏曲的雅致典雅，又兼具民间艺术的活泼生动，是中国传统文化的瑰宝。
                  </p>
                </div>
              </div>

              <div class="heritage-section">
                <h2 class="section-title">传承情况</h2>
                <div class="section-content">
                  <p>
                    黄梅戏的传承主要通过专业院团和教育机构进行。安徽省黄梅戏剧院、安庆黄梅戏艺术职业学院等机构培养了大批黄梅戏人才，保证了这一艺术形式的传承与发展。
                  </p>
                  <p>
                    为保护和发扬黄梅戏艺术，国家和地方政府采取了多种保护措施，包括开展黄梅戏进校园、进社区活动，举办黄梅戏艺术节，支持黄梅戏新剧目创作，以及对老艺术家的口述史记录和珍贵资料的收集整理等。
                  </p>
                  <p>
                    目前，黄梅戏正在积极探索传统与现代的结合之路，一方面保持传统艺术的精髓，一方面融入现代元素，创作了一批反映当代生活的新剧目，使这一古老艺术焕发新的生机。
                  </p>
                </div>
              </div>
            </div>

            <!-- 社交互动部分 -->
            <SocialInteraction :pageId="104" pageType="featured" />
          </div>

          <!-- 侧边栏 -->
          <div class="heritage-sidebar">
            <!-- 传承人信息 -->
            <div class="sidebar-box inheritors-box">
              <h3 class="sidebar-title">代表性传承人</h3>
              <ul class="inheritors-list">
                <li class="inheritor-item">
                  <div class="inheritor-image-placeholder">严凤英照片</div>
                  <div class="inheritor-info">
                    <div class="inheritor-name">严凤英(历史传承人)</div>
                    <div class="inheritor-meta">黄梅戏表演艺术大师</div>
                  </div>
                </li>
                <li class="inheritor-item">
                  <div class="inheritor-image-placeholder">韩再芬照片</div>
                  <div class="inheritor-info">
                    <div class="inheritor-name">韩再芬</div>
                    <div class="inheritor-meta">国家级传承人</div>
                  </div>
                </li>
                <li class="inheritor-item">
                  <div class="inheritor-image-placeholder">吴琼照片</div>
                  <div class="inheritor-info">
                    <div class="inheritor-name">吴琼</div>
                    <div class="inheritor-meta">安徽省级传承人</div>
                  </div>
                </li>
              </ul>
            </div>

            <!-- 经典剧目 -->
            <div class="sidebar-box repertoire-box">
              <h3 class="sidebar-title">经典剧目</h3>
              <div class="repertoire-info">
                <p>《天仙配》</p>
                <p>《女驸马》</p>
                <p>《牛郎织女》</p>
                <p>《孟姜女》</p>
                <p>《打猪草》</p>
              </div>
            </div>

            <!-- 相关遗产推荐 -->
            <div class="sidebar-box related-box">
              <h3 class="sidebar-title">相关遗产推荐</h3>
              <ul class="related-list">
                <li class="related-item">
                  <router-link to="/featured/peking-opera" class="related-link">
                    <div class="related-image-placeholder">京剧图片</div>
                    <div class="related-name">京剧</div>
                  </router-link>
                </li>
                <li class="related-item">
                  <router-link to="/featured/su-zhou-embroidery" class="related-link">
                    <div class="related-image-placeholder">苏州刺绣图片</div>
                    <div class="related-name">苏州刺绣</div>
                  </router-link>
                </li>
                <li class="related-item">
                  <router-link to="/featured/jing-tai-lan" class="related-link">
                    <div class="related-image-placeholder">景泰蓝图片</div>
                    <div class="related-name">景泰蓝</div>
                  </router-link>
                </li>
              </ul>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { ref } from 'vue'
import pic1 from '../../assets/huangmeixi/pic1.jpg'
import pic2 from '../../assets/huangmeixi/pic2.jpg'
<<<<<<< HEAD
import SocialInteraction from '../../components/SocialInteraction.vue'

export default {
  name: 'HuangMeiOperaView',
  components: {
    SocialInteraction,
  },
=======

export default {
  name: 'HuangMeiOperaView',
>>>>>>> ba93636 (前端建设完成)
  setup() {
    const currentImage = ref(pic1)
    const currentCaption = ref('黄梅戏表演艺术')
    const currentSource = ref('素材来源于新民周刊')

    const showImage = (image, caption, source) => {
      currentImage.value = image
      currentCaption.value = caption
      currentSource.value = source
    }

    return {
      pic1,
      pic2,
      currentImage,
      currentCaption,
      currentSource,
      showImage,
    }
  },
}
</script>

<style scoped>
.featured-heritage-detail {
  padding: 40px 0;
}

/* 面包屑导航 */
.breadcrumbs {
  margin-bottom: 25px;
  color: #666;
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* 遗产标题信息 */
.heritage-header {
  margin-bottom: 30px;
}

.heritage-header h1 {
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.heritage-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px;
  background-color: rgba(184, 134, 11, 0.05);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.heritage-meta-item {
  display: flex;
  align-items: center;
}

.meta-label {
  font-weight: bold;
  margin-right: 10px;
  color: var(--secondary-color);
}

.level-badge {
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.level-national {
  background-color: #f0f8ff;
  color: #1e90ff;
}

.level-unesco {
  background-color: #fff0f5;
  color: #c71585;
}

/* 遗产详情主体 */
.heritage-body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
}

.heritage-main {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

/* 图片展示区 */
.heritage-images {
  margin-bottom: 30px;
}

.main-image {
  height: 400px;
  position: relative;
  margin-bottom: 15px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.main-image:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.main-image:hover .main-img {
  transform: scale(1.03);
}

.image-source {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  z-index: 1;
  backdrop-filter: blur(2px);
}

.image-caption {
  text-align: center;
  padding: 8px;
  color: #555;
  font-size: 0.95rem;
  margin-top: 5px;
  font-weight: 500;
}

.thumbnail-list {
  display: flex;
  gap: 12px;
  padding: 0 10px;
  justify-content: center;
}

.thumbnail {
  width: 100px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.thumbnail:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.thumbnail.active {
  border-color: var(--primary-color);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail:hover img {
  transform: scale(1.08);
}

/* 详细介绍 */
.heritage-sections {
  padding: 20px;
}

.heritage-section {
  margin-bottom: 30px;
}

.section-title {
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-left: 15px;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 80%;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.section-content {
  line-height: 1.8;
  color: var(--text-color);
}

.section-content p {
  margin-bottom: 15px;
}

.section-content ol,
.section-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.section-content li {
  margin-bottom: 10px;
}

/* 社交互动部分 */
.social-interaction {
  padding: 20px;
  border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.interaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.login-tip {
  font-size: 0.9rem;
  color: #666;
}

.login-tip a {
  color: var(--primary-color);
  text-decoration: none;
}

.login-tip a:hover {
  text-decoration: underline;
}

.interaction-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.interaction-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--dark-color);
  cursor: pointer;
  transition: var(--transition);
}

.interaction-btn:hover {
  background-color: rgba(184, 134, 11, 0.1);
}

.interaction-btn.active {
  background-color: var(--primary-color);
  color: white;
}

.interaction-btn .count {
  font-weight: bold;
  color: var(--primary-color);
}

.interaction-btn.active .count {
  color: white;
}

/* 评论区域 */
.comments-section {
  margin-top: 30px;
}

.comments-section h3 {
  margin-bottom: 20px;
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  color: var(--dark-color);
}

.comment-form {
  margin-bottom: 30px;
}

.comment-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin-bottom: 10px;
  background-color: #f9f9f9;
  resize: vertical;
}

.submit-comment-btn {
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.submit-comment-btn:hover:not(:disabled) {
  background-color: var(--accent-color);
}

.submit-comment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary-color);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.comment-author {
  color: var(--dark-color);
}

.comment-time {
  font-size: 0.8rem;
  color: #666;
}

.comment-body {
  line-height: 1.6;
}

/* 侧边栏 */
.heritage-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-box {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.sidebar-title {
  padding: 15px;
  background-color: rgba(184, 134, 11, 0.1);
  color: var(--dark-color);
  font-family: 'ZCOOL QingKe HuangYou', sans-serif;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.inheritors-list,
.related-list {
  padding: 15px;
  list-style: none;
}

.inheritor-item,
.related-item {
  display: flex;
  gap: 10px;
  padding-bottom: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(184, 134, 11, 0.1);
}

.inheritor-item:last-child,
.related-item:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.inheritor-image-placeholder,
.related-image-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-color);
  color: var(--secondary-color);
  font-size: 0.8rem;
  border: 1px dashed var(--primary-color);
  border-radius: 4px;
}

.inheritor-info {
  flex: 1;
}

.inheritor-name {
  font-weight: bold;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.inheritor-meta {
  font-size: 0.85rem;
  color: #666;
}

.related-link {
  display: flex;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: var(--dark-color);
  transition: var(--transition);
}

.related-link:hover {
  transform: translateY(-2px);
}

.related-name {
  flex: 1;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.repertoire-info,
.protection-info {
  padding: 15px;
}

.repertoire-info p,
.protection-info p {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .heritage-body {
    grid-template-columns: 1fr;
  }

  .main-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .heritage-meta {
    flex-direction: column;
    gap: 10px;
  }

  .thumbnail-list {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-image {
    height: 250px;
  }

  .interaction-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .thumbnail {
    width: 85px;
    height: 65px;
  }
}
</style>
